package com.csit.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name="T_Supplier")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Supplier implements Serializable {

	private static final long serialVersionUID = 4118689062477841504L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer supplierID;
	
	@Column(length=50,unique=true)
	private String supplierCode;
	
	@Column(length=500)
	private String supplierName;
	
	@Column(length=255)
	private String contacter;
	
	@Column(length=100)
	private String phone;
	
	@Column(length=1000)
	private String address;
	
	@Column(length=100)
	private String email;
	
	@Column(length=1024)
	private String note;

	public Integer getSupplierID() {
		return supplierID;
	}

	public void setSupplierID(Integer supplierID) {
		this.supplierID = supplierID;
	}

	public String getSupplierCode() {
		return supplierCode;
	}

	public void setSupplierCode(String supplierCode) {
		this.supplierCode = supplierCode;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String getContacter() {
		return contacter;
	}

	public void setContacter(String contacter) {
		this.contacter = contacter;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
}
